// src/models/BorrowRecord.js
export class BorrowRecord {
  constructor(data = {}) {
    this.id = data.id || null
    this.bookId = data.bookId || null
    this.borrowerName = data.borrowerName || ''
    this.borrowerPhone = data.borrowerPhone || ''
    this.borrowDate = data.borrowDate || null
    this.returnDate = data.returnDate || null
    this.returned = data.returned || false
  }
}